<?php
namespace app\admin\event\listeners\user;

use app\admin\logic\user\Account as Account;

/**
 * 创建用户授权
 */
class UserLastLogin
{
    public static function handle(Account $user)
    {
        $user->last_login_ip   = request()->ip();
        $user->last_login_time = request()->time();
        $user->save();
    }
}
